Tootsville::Encode-Endpoint-Reply

Function

Encode-Endpoint-Reply names a function, with lambda list (REPLY):

Handle the reply from an endpoint function gracefully.

Strings are sent in UTF-8.

Vectors are assumed to be octet vectors.

Lists can begin with a status code number, followed by an optional list of headers, followed by actual contents. A list not beginning with a status number is assumed to be cons data, which is transmitted as JSON in UTF-8 using the Jonathan transcoding.

Relies upon TOOTSVILLE CONTENTS-TO-BYTES, qv

File

Defined in file src/web.lisp.